public class Main {

    public static void main(String[] args) {
        Solution solution = new Solution();
        ListNode l1 = new ListNode(9, null);
        ListNode l2 = new ListNode(9, l1);
        ListNode l3 = new ListNode(9, l2);
        ListNode l4 = new ListNode(9, l3);

        ListNode l5 = new ListNode(9, null);
        ListNode l6 = new ListNode(9, l5);

        // 9999 + 99 = 10098
        ListNode listNode = solution.addTwoNumbers(l4, l6);
        while(listNode != null){
            System.out.println(listNode.val);
            listNode = listNode.next;
        }
    }

}